package com.cailu.rabmq.sender.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cailu.rabmq.sender.sender.DelaySenderEessageTemplate;
import com.cailu.rabmq.sender.version.ApiVersionConstant;
import com.cailu.rabmq.sender.version.ApiVersions;

/**
 * @author cailu
 * @filename DelaySenderController
 * @description 延迟消费 配置在【消息上】
 * @date 2020/3/30 17:37
 */
@Api(value = "10005-延迟消费 配置在【消息上】", tags = {"10005-延迟消费 配置在【消息上】"})
@RestController
public class DelaySenderEessageController {

	@Autowired
	private DelaySenderEessageTemplate delaySenderTemplate;

	@GetMapping("delayQueuePerMessageTTL")
	@ApiOperation(value = "50001-创建 延迟消费 发布者", notes = "创建 延迟消费 发布者")
	@ApiVersions(group = ApiVersionConstant.FAP_APP100)
	public String delayQueuePerMessageTTL() {
		delaySenderTemplate.delayQueuePerMessageTTL();
		return "延迟消费 配置在 【消息上】 创建成功";
	}


}
